import request from '@/utils/request'

// 查询工作请示列表
export function listWorkRequest(query) {
  return request({
    url: '/oa/workRequest/list',
    method: 'get',
    params: query
  })
}

// 查询工作请示详细
export function getWorkRequest(id) {
  return request({
    url: '/oa/workRequest/' + id,
    method: 'get'
  })
}

// 新增工作请示
export function addWorkRequest(data) {
  return request({
    url: '/oa/workRequest',
    method: 'post',
    data: data
  })
}

// 修改工作请示
export function updateWorkRequest(data) {
  return request({
    url: '/oa/workRequest',
    method: 'put',
    data: data
  })
}

// 删除工作请示
export function delWorkRequest(id) {
  return request({
    url: '/oa/workRequest/' + id,
    method: 'delete'
  })
}
